package com.nsqt.biz.dao;

import com.nsqt.biz.domain.CustomerDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 *
 */
@Mapper
public interface CustomerDao {
    CustomerDO get(Long id);

    List<CustomerDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(CustomerDO customer);

    int update(CustomerDO customer);

    int remove(Long id);

    int batchRemove(Long[] ids);

    int checkout(Long id, Integer saler);

    int batchCheckout(Long[] ids, Integer saler);
}
